package com.lyf.design.practice.theory.behavior.strategy.nju.moviesale_20.v0;

/**
 * @author LYF
 * @date 2022/6/25
 */
public class SaleMovie {
    private Double price;
    private Integer point;

    Double getLastPrice(Double price,String args) {
        if(args.equals("VIP")){
            return price*0.5;
        }else if(args.equals("CHILD")){
            return price*0.8;
        }else if(args.equals("STUDENT")){
            if(price>=20){
                return price-10;
            }
        }
        return price;
    }
    /*
    弊端？


     */
}
